package chappter06.e14;

import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;

public class e14 {
    public static void main(String[] args){
        HashMap map = new HashMap();
        map.put("刘雯","杨思琪");
        map.put("1","张三");
        map.put("2","李四");
        map.put("3","王五");
        System.out.println(map);
        Set keyset = map.keySet();
        Iterator it = keyset.iterator();
        while (it.hasNext());{
            Object key = it.next();
            System.out.println(key + ":" + map.get(key));
        }
    }
}
